<?php
namespace app\common\model;
use x\Xbase;
use ETaobao\Factory;
class Tbk extends Xbase
{
  public function getApp($config=[]){
    $default = [
        'appkey' => '23545895',
        'secretKey' => '07831869794dba604792dd4b297be9f9',
        'format' => 'json',
        'sandbox' => false,
    ];
    $config = array_merge($default, $config);
    $app = Factory::Tbk($config);
    return $app;
  }
}
